<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%
	String msg = (String) request.getAttribute("message");
	if (msg != null) {
		out.print("<script language='javascript'>alert('" + msg+ "');</script>");
	} else {
		request.removeAttribute("message");
	}
%>
<%
	String error = (String) request.getAttribute("codeError");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页面</title>
</head>

<body bgcolor="#B7E8FB">
		<table width="1039" border="5" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="140" colspan="2">
					<img src="images/top.jpg" width="1039" height="140" />
				</td>
			</tr>
		</table>
<form name="form1" method="post" action="<%=basePath %>LoginAction">
  <table width="390" border="0" cellspacing="0" cellpadding="0" align="center" height="116">
    <tr>
      <td>用户名</td>
      <td>
      <input type="text" name="username" id="name" value="admin"/></td>
    </tr>
    <tr>
      <td>密码</td>
      <td>
      <input type="password" name="password" id="password" value="a"/></td>
    </tr>
    <tr>
      <td colspan="2"><input align="middle" type="submit" name="login" id="login" value="登录" /></td>
    </tr>
  </table>
</form>
</body>
</html>
